template = "data modify entity @n[tag=faqv.villager_ball.ball_to_generate, type=item] Item.components.\"minecraft:custom_data\".villager.{tag} set from entity @n[tag=faqv.villager_ball.villager_to_copy, type=villager] {tag}"
tags = [
    "Brain",
    "CustomName",
    "CustomNameVisible",
    "Invulnerable",
    "NoGravity",
    "OnGround",
    "Silent",
    "Health",
    "NoAI",
    "AssignProfessionWhenSpawned",
    "FoodLevel",
    "Inventory",
    "Gossips",
    "LastGossipDecay",
    "LastRestock",
    "Offers",
    "RestocksToday",
    "VillagerData",
    "Xp"
]

for tag in tags:
    print(template.format(tag=tag))
print()